DESCRIPTION = "Simple and clean multi resolution skin SimpleGray by Taapat"
MAINTAINER = "Taapat"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"

inherit gitpkgv allarch pythonnative

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"

SRC_URI = "git://gitlab.com/jack2015/skin-SimpleGray.git;protocol=https;branch=master"

FILES:${PN} = "/usr"

S = "${WORKDIR}/git"

do_compile() {
    python2 -O -m compileall ${S}${libdir}/enigma2/python/Components/
}

do_install() {
    install -d ${D}/usr
    cp -r ${S}/usr/* ${D}/usr
    chmod -R a+rX ${D}/usr/share
    find ${D}/ -name '*.py' -exec rm {} \;
}
